package com.linwen.javase.desgin_pattern.action.state;

/**
 * @ClassName StateTest
 * @Description
 * @Author lin
 * @Date 2022/6/29 下午11:44
 * @Version V1.0
 */
public class StateTest {
    public static void main(String[] args) {
        Context context = new Context();    //创建环境
        context.setState(new ConcreteStateB());
        context.Handle();    //处理请求
        context.Handle();
        context.Handle();
        context.Handle();
    }
}
